package com.cari.oa.service;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cari.oa.dao.BaseDao;
import com.cari.oa.dao.ReqTypeDao;
import com.cari.oa.domain.ReqTypeEntity;

@Service
@Transactional(rollbackFor = Exception.class)
public class ReqTypeService extends BaseService<ReqTypeEntity> {
	
	@Resource
	private ReqTypeDao reqTypeDao;

	@Override
	public BaseDao<ReqTypeEntity> getDao() {
		return reqTypeDao;
	}

	public List<Map<String,String>> getReqTypeNameAndPerson() {
		return reqTypeDao.getReqTypeNameAndPerson();
	}
	
}
